﻿<%@ Page Title="" Language="C#" EnableViewState="false" MasterPageFile="~/Master/SearchMaster.Master" AutoEventWireup="true"
    CodeBehind="Search.aspx.cs" Inherits="CSP.Web.Service.Search" %>

<asp:Content ID="CSPHead" ContentPlaceHolderID="CSPHead" runat="server">
    <title><%=GetPageTitle()%></title>
    <meta name="keywords" content="<%=GetPageTitle()%>" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="" />
    <meta name="author" content="" />
</asp:Content>

<asp:Content ID="CSPStyleAndScript" ContentPlaceHolderID="CSPStyleAndScript" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnNextSetp").click(function () {
                var __manage = $("#manageValue");
                $.XYTipsWindow({
                    ___title: "提示",

                    ___content: "iframe:/Talert/login.html?manage=" + __manage.val(),
                    ___width: "460",
                    ___height: "150",
                    ___showbg: true,
                    ___drag: "___boxTitle"

                });
            });
            $(".opendetail").click(function () {
                $.XYTipsWindow({
                    ___title: "详细",
                    ___content: "",
                    ___width: "460",
                    ___height: "450",
                    ___showbg: true,
                    ___drag: "___boxTitle"
                });
            });
        })
    </script>
    <style type="text/css">
        .Tabs {
            width: 100%;
            font-size: 14px;
            margin: 10px;
            border: 0px solid #64ab26;
        }

            .Tabs .tit {
                font-weight: bold;
                border: 1px solid #64ab26;
            }

            .Tabs td {
                text-align: center;
            }

            .Tabs tr {
                height: 46px;
                line-height: 42px;
            }
    </style>
</asp:Content>
<asp:Content ID="CSPMain" ContentPlaceHolderID="CSPMain" runat="server">
    <div id="content">
        <div class="box green">
            <p class="box-tp">
                <b></b>
            </p>
            <CSP_U:SearchCondition ID="U_SearchCondition" runat="server" />
            <!--grid-m0-->
            <p class="box-bt">
                <b></b>
            </p>
        </div>
        <div class="search-bar">
            <div class="result fl">
                找到相关<strong class="fc-red" runat="server" id="S_TotalCount">22</strong> 个
            </div>
            <div class="rank-option">
                <ul class="ro-list">
                    <li class="current">
                        <asp:LinkButton ID="LB_Default" ToolTip="默认排序" OnClick="LB_Default_Click" runat="server">默认排序</asp:LinkButton></li>                  
                    <li>
                        <asp:LinkButton ID="LB_Price" ToolTip="成交率" OnClick="LB_Price_Click" runat="server">成交率<i class="ico i-<%=PriceAscOrDesc?"down":"up" %>-default  "></i></asp:LinkButton>
                    </li>
                    <li class="price" style="display: none">
                        <input class="p-text" type="text">
                        -
                        <input class="p-text" type="text">
                        <input class="p-btn" value="确定" type="submit"></li>
                </ul>
            </div>
            <!-- rank-option -->
        </div>
        <!-- search-bar -->
        <div class="search-content mb10 new-search">
            <div id="DIV_SearchNothing" class="search-null" runat="server">
                <p>对不起，没有找到和 <span class="fc-red">“搜索关键词”</span> 相符的信息，看一看为您推荐的信息吧！</p>
            </div>
            <ul class="search-list">
                <asp:Repeater ID="R_ServiceInfo" runat="server">
                    <HeaderTemplate>
                        <table class="Tabs">
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="tit">
                            <td><%# Convert.ToInt32(Eval("KeyWords")==null?0:1) ==1?"<image src=\"/Images/evaluate/s_cap_1.gif\" />":"" %>
                            </td>
                            <td>产品编号</td>
                            <td>期限(月)</td>
                            <td>额度(万)</td>
                            <td>审批时间(天)</td>
                            <td>月综合利息</td>
                            <td>前期费用</td>
                            <td>其他费用</td>
                            <td>还款方式</td>
                            <td>提前还款说明</td>
                            <td style="width: 60px;">详细</td>
                        </tr>
                        <tr>
                            <td>
                                <input type="checkbox" value="全选" id="mychk<%# Eval("id") %>" onchange="ChangeValue(this,'<%# Eval("username") %>')" /></td>
                            <td><%# Eval("Code") %></td>
                            <td><%# Eval("QiXianStart") %>－<%# Eval("QiXianEnd") %></td>
                            <td><%# Eval("EduStart") %>－<%# Eval("EduEnd") %></td>
                            <td><%# Eval("ShenPiTimeStart") %>－<%# Eval("ShenPiTimeEnd") %></td>
                            <td><%# Eval("MonthLiXi") %>%</td>
                            <td><%#Convert.ToInt32(Eval("QianQiCost")==null?0:Eval("QianQiCost")) == 0 ? "无": Eval("QianQiCost")%></td>
                            <td><%#Convert.ToInt32(Eval("OtherCost")==null?0:Eval("OtherCost")) == 0 ? "无": Eval("OtherCost")%></td>
                            <td><%#GetPaymentByCode(Eval("Repayment").ToString()) %></td>
                            <td><%# Eval("PayDescription") %></td>
                            <td style="width: 60px;">
                                <input type="button" class="opendetail" value="查看" /></td>

                        </tr>
                        <tr></tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
            </ul>
            <div class="search-list">
                <div class="quick-search">
                    <div class="qs-form" style="margin: 0 auto;">
                        <input type="button" id="btnNextSetp" value="下一步" class="s-btn">
                    </div>
                </div>
            </div>
            <CSP_U:CSPPager ID="U_ServicePager" AutoPostBack="true" runat="server" OnIndexChange="U_ServicePager_IndexChange" />
        </div>
    </div>
    <asp:Label ID="LB_RecommendCurriculum" Visible="false" runat="server" Text="55,41,78,85"></asp:Label>
</asp:Content>
